//
// Created by wze-zero on 2024/8/12 012.
//
#include <iostream>
#include <iomanip>

using namespace std;


int main() {
    int num = 1234;
    cout << "0" << oct << num << " ";
    cout << "0X" << setiosflags(ios::uppercase) << hex << num << endl;
    return 0;
}